package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BsPlayerskillMapper;
import com.ruoyi.system.domain.BsPlayerskill;
import com.ruoyi.system.service.IBsPlayerskillService;

/**
 * 武将技能Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class BsPlayerskillServiceImpl implements IBsPlayerskillService 
{
    @Autowired
    private BsPlayerskillMapper bsPlayerskillMapper;

    /**
     * 查询武将技能
     * 
     * @param id 武将技能主键
     * @return 武将技能
     */
    @Override
    public BsPlayerskill selectBsPlayerskillById(Long id)
    {
        return bsPlayerskillMapper.selectBsPlayerskillById(id);
    }

    /**
     * 查询武将技能列表
     * 
     * @param bsPlayerskill 武将技能
     * @return 武将技能
     */
    @Override
    public List<BsPlayerskill> selectBsPlayerskillList(BsPlayerskill bsPlayerskill)
    {
        return bsPlayerskillMapper.selectBsPlayerskillList(bsPlayerskill);
    }

    /**
     * 新增武将技能
     * 
     * @param bsPlayerskill 武将技能
     * @return 结果
     */
    @Override
    public int insertBsPlayerskill(BsPlayerskill bsPlayerskill)
    {
        return bsPlayerskillMapper.insertBsPlayerskill(bsPlayerskill);
    }

    /**
     * 修改武将技能
     * 
     * @param bsPlayerskill 武将技能
     * @return 结果
     */
    @Override
    public int updateBsPlayerskill(BsPlayerskill bsPlayerskill)
    {
        return bsPlayerskillMapper.updateBsPlayerskill(bsPlayerskill);
    }

    /**
     * 批量删除武将技能
     * 
     * @param ids 需要删除的武将技能主键
     * @return 结果
     */
    @Override
    public int deleteBsPlayerskillByIds(Long[] ids)
    {
        return bsPlayerskillMapper.deleteBsPlayerskillByIds(ids);
    }

    /**
     * 删除武将技能信息
     * 
     * @param id 武将技能主键
     * @return 结果
     */
    @Override
    public int deleteBsPlayerskillById(Long id)
    {
        return bsPlayerskillMapper.deleteBsPlayerskillById(id);
    }
}
